package com.cheng.xbjy.service;

import com.cheng.xbjy.entity.User;
import com.cheng.xbjy.entity.vo.Result;
import org.springframework.data.domain.Page;

import java.util.List;

public interface UserService {

    User findByEmail(String email);

    User findByUsername(String username);

    void save(User user);

    void updatePassword(User user);

    User findOne(User user);

    void updateLoginTime(Long id);

    User findById(Long userId);

    Page<User> findPageUser(String username, Integer page);

    List<Long> findFocus(Long userId);

    Integer countFocusByUserId(Long id);

    void updateLookById(Long id);

    Result addFocus(Long userId, Long focusId);

    User update(User user);

    void updateUserPic(Long userId, String url);

    Page<User> findFocusPage(Long userId, Integer page);

    List<User> findDeptUser(Long deptId);

    User findByWxOpenid(String wxOpenid);
}
